import React from "react";
import { useRoutes } from "react-router-dom";
import { ROUTES_LIST } from "./routes";

const Router: React.FC = () => {
  const RouterView = () => useRoutes(ROUTES_LIST);
  return <RouterView></RouterView>;
};

export default Router;
